package cn.gson.springboot.model.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.alibaba.fastjson.JSONArray;


@Mapper
public interface DrugApplyMapper {
	//显示所有请领记录信息
		public JSONArray selectAllqljl();
	
	//根据请领查询或者查询所有
		public JSONArray selectAllqlidkaid(@Param("drugapplyid")Integer drugapplyid);
	
	//新增药品请领
	public void addDrugql(@Param("drugapply_allnumber") Integer drugapplyallnumber,
			 @Param("drugapply_type") Integer drugapplytype,@Param("drugapply_people") String drugapplypeople,
			 @Param("drugapply_state") Integer drugapplystate);
	
	//新增药品详情
	public void addDrugxq(@Param("dp_details_id") Integer dpdetailsid,@Param("drugapply_id") Integer drugapplyid,
			 @Param("drug_number") Integer drugnumber,@Param("dp_details_Shuliang") Integer dpdetailsShuliang,
			 @Param("dp_details_shijiShuliang") Integer dpdetailsshijiShuliang);
}
